<h2>Pengelolaan Data Sekolah </h2>
<br clear="all"/>
<table class="table tablepager">
    <thead>
        <tr>
            <th width="10px">No.</th>
            <th width="50px">Nomor Induk</th>
            <th >Nama Sekolah</th>
            <th width="150px">Alamat</th>
            <th width="100px">Telepon</th>
            <th width="120px">Aksi</th>
        </tr>
    </thead>
    <tbody>
        <?php $no=1 ?>
        <?php foreach($data as $detail): ?>
            <tr>
                <td class="center"><?php echo $no++ ?></td>
                <td  class="center"><?php echo $detail['nomor_induk']?></td>
                <td ><?php echo strtoupper($detail['nama_sekolah'])?></td>
                <td ><?php echo strtoupper($detail['alamat'])?></td>
                <td ><?php echo $detail['telepon']?></td>
                
                <td class="center">
                    <?php echo anchor("instansi/sekolah/detail/".$detail['nomor_induk'],"detail") ?> |
                    <?php echo anchor("instansi/sekolah/edit/".$detail['nomor_induk'],"edit") ?> |
                    <?php echo anchor("instansi/sekolah/delete/".$detail['nomor_induk'],"delete",array("onclick"=>"return confirm('Apakah Anda yakin akan menghapus data ini?')")) ?>
                </td>
            </tr>
        <?php endforeach ?>
    </tbody>
</table>
<?php $this->load->view("elements/pager") ?>
<?php echo anchor("instansi/sekolah/add", "Tambah Data", array("class"=>"button")) ?>
